package siscom.modelos.DAO;

import java.sql.SQLException;
import java.util.List;

/**
 *
 * @author Carlos Ribeiro
 */
public interface DAO<T> {
    public void salvar(T instancia) throws SQLException;
    public void atualizar(T instancia) throws SQLException;
    public void salvarOuAtualizar(T instancia) throws SQLException;
    public void excluir(T instancia) throws SQLException;
    public boolean existe(T instancia) throws SQLException;
    public T selecionar(T instancia) throws SQLException;
    public List<T> selecionarTodos() throws SQLException;
}
